<template>
  <div>
    <div class="take-care">
      <span class="el-icon-warning"></span>
      <span>
        值可以是像 20 这样的具体像素值，可以是像 '20%'
        这样相对于容器高宽的百分比，也可以是 'left', 'center', 'right'。
      </span>
    </div>
    <div class="p1">
      <el-form-item label="上偏移">
        <el-input v-model="title.top"></el-input>
      </el-form-item>
      <el-form-item label="下偏移">
        <el-input v-model="title.bottom"></el-input>
      </el-form-item>
      <el-form-item label="左偏移">
        <el-input v-model="title.left"></el-input>
      </el-form-item>
      <el-form-item label="右偏移">
        <el-input v-model="title.right"></el-input>
      </el-form-item>
    </div>
  </div>
</template>

<script>
export default {
  name: "Position",
  inject: ["father"],
  computed: {
    title: {
      get() {
        return this.father.echartsOptions.title;
      },
      set(val) {
        this.father.echartsOptions.title = val;
      },
    },
  },
  mounted() {},
  methods: {},
};
</script>

<style scoped>
</style>